import instance from "@/config/request"

// 获取所有分类
export const suoyou=async(canshu)=>{
    return await instance.post('/category/suoyou',canshu)
}
// 添加分类
export const shangpin=async(canshu)=>{
    return await instance.post('/category/zengcai',canshu)
}
// 添加套餐
export const taocan=async(canshu)=>{
    return await instance.post('/category/zengtao',canshu)
}
// 删除
export const shanchu=async(name)=>{
    return await instance.get('/category/shanchu/'+name)
}
// 根据名字查询分类管理
export const huolou=async(canshu)=>{
    return await instance.post('/category/huolou',canshu)
}
